package com.qf.service;

import com.qf.dao.UserDao;
import com.qf.dao.UserDaoTwoImpl;
import com.qf.pojo.User;

import java.util.List;

/**
 * projectName: wokepase1
 *
 * @author: 强力
 * time: 2021/8/28 10:38
 * description:
 */
public class UserServiceImpl implements  UserService {
    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public List<User> getAll() {
        UserDao userDao=new UserDaoTwoImpl();
        List<User> list = userDao.findAll();
        return list;

    }
}
